package com.dongdong.tbbrandService.impl;

import com.dongdong.mapper.TbSellerMapper;
import com.dongdong.pojo.TbSeller;
import com.dongdong.service.TbSellerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@com.alibaba.dubbo.config.annotation.Service
public class TbSellerServiceImpl implements TbSellerService {
 @Autowired
 private TbSellerMapper tbSellerMapper;
    @Override
    public TbSeller getInfoLogin(String username) {
        return tbSellerMapper.getInfoLogin(username);
    }

    @Override
    public void insert(TbSeller tbSeller) {
        tbSellerMapper.insertSelective(tbSeller);
    }

    @Override
    public List<TbSeller> getShow(String name, String nikeName, String status) {
        return tbSellerMapper.getShow(name,nikeName,status);
    }

    @Override
    public TbSeller toUpdate(String sellerId) {
        return tbSellerMapper.selectByPrimaryKey(sellerId);
    }

    @Override
    public void update(String sellerId, String status) {
        tbSellerMapper.update(sellerId,status);
    }
}
